# Maintainer: Marian Buschsieweke <marian.buschsieweke@ovgu.de>
pkgname=avarice
pkgver=2.14
pkgrel=1
pkgdesc="AVaRICE interfaces with GDB and allows debugging of AVR MCUs"
url="http://avarice.sourceforge.net/"
arch="all"
license="GPL-2.0-only"
makedepends="binutils-dev libusb-dev libusb-compat-dev hidapi-dev perl"
depends="gdb-multiarch"
subpackages="$pkgname-doc"
source="https://downloads.sourceforge.net/project/avarice/avarice/avarice-$pkgver/avarice-$pkgver.tar.bz2
	drop_keyword_unused.patch
	"

build() {
	./configure \
		--build=$CBUILD \
		--host=$CHOST \
		--prefix=/usr
	make
}

check() {
	make check
}

package() {
	make DESTDIR="$pkgdir" install
}

sha512sums="e0b23bd02bfa7d4dc05027f0f59ec7da868d8d0c0cd4f66595f6aaa5c335fa4eb64fc47399e51c0ed5112803ee99a3f041812bf4072dc096cc933cd17f9348a0  avarice-2.14.tar.bz2
8e9faf7eab5807f3b100ba29e7aab857f91947981a25dccc3096c9462d777be9fb19cf410e8634884b3ce9299fe410e24d1cd107c4bdbf0a537b9f9322e7c627  drop_keyword_unused.patch"
